package com.dhcc.bpm.modules.api.service;

import com.dhcc.bpm.modules.api.entity.Backservice;
import com.dhcc.bpm.modules.common.vo.SelectVo;
import com.dhcc.bpm.modules.api.vo.BackserviceVO;
import org.springblade.core.mp.base.BaseService;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;

/**
 * @ClassName IBackserviceService
 * @Description 后端服务表 服务类
 * @Author daina
 * @Date 2020/2/25 15:22
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 */
public interface IBackserviceService extends BaseService<Backservice> {

	/**
	 * @Description 自定义分页
	 * @Author daina
	 * @Date 15:54 2020/2/25
	 * @param page
	 * @param backservice
	 * @return com.baomidou.mybatisplus.core.metadata.IPage<com.dhcc.bpm.modules.api.vo.BackserviceVO>
	 **/
	IPage<BackserviceVO> selectBackservicePage(IPage<BackserviceVO> page, BackserviceVO backservice);

	/**
	 * @Description 自定义分页
	 * @Author
	 * @Date 15:54 2020/2/25
	 * @param backservice
	 * @return com.baomidou.mybatisplus.core.metadata.IPage<com.dhcc.bpm.modules.api.vo.BackserviceVO>
	 **/
	IPage<BackserviceVO> getPage(IPage<BackserviceVO> page,BackserviceVO backservice);

	/**
	 * @Description 查询后端服务名称
	 * @Author daina
	 * @Date 15:54 2020/2/25
	 * @param
	 * @return java.util.List<com.dhcc.bpm.modules.common.vo.SelectVo>
	 **/
	List<SelectVo> selectBackserviceName();

	/**
	 * @Author wangjinghan
	 * @Description 获取详情
	 * @param:
	 * @return:
	 * @date: 2020/4/16 17:40
	 */
	BackserviceVO getOneDetail(BackserviceVO backservice);
	/**
	 * @Author wangjinghan
	 * @Description 获取详情
	 * @param:
	 * @return:
	 * @date: 2020/4/16 17:40
	 */
	List<BackserviceVO>  getByBaseProductId(Long baseProductId);

	/**
	 * @Author xiafayu
	 * @Description 根据基础产品删除后端服务
	 * @param: baseProductId 基础产品id
	 * @return:
	 * @date: 2020/4/16 17:40
	 */
	int deleteByBaseProductId(Long baseProductId);

}
